import client from './client'

// 颁发Token
export var LOGIN = (data) => {
  return client({
    url: '/api/v1/token/',
    method: 'post',
    data: data
  })
}

// 销毁Token
export var LOGINOUT = (data) => {
  return client({
    url: '/api/v1/tokens/',
    method: 'delete',
    data: data
  })
}
